package com.marquis.cloud;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

import java.util.Scanner;

@SpringBootApplication
@EnableEurekaClient//声明为Eureka客户端
@MapperScan("com.marquis.cloud.mapper")
public class ProviderRun {

    public static void main(String[] args) {
        System.out.println("请输入profiles:");
        Scanner scanner = new Scanner(System.in);
        String profiles = scanner.nextLine();
        new SpringApplicationBuilder(ProviderRun.class).profiles(profiles).run(args);
    }
}
